Orbital interactions and their effects on the conformational stability in six-membered rings containing nitrogen atoms