A comparison of ab initio optical rotations obtained with static and dynamic methods