Ab initio calculation of magnetic properties of CO, the equilibrium geometry and the 13C, 17O and 27Al NMR shielding tensors of the system