Paramagnetic contributions to the NMR shielding constants of 1H and 17O in water by triple perturbation theory