Determination of the magnetic anisotropy of the oxygen atom and 1H chemical-shift calculation of proteins