A theoretical study of methoxy group rotation in anisole