Optical alignment and confinement of an ellipsoidal nanorod in optical tweezers: a theoretical study