On the invariance of the configuration interaction energy with respect to orbital rotations