Nuclear magnetic shieldings and spin rotation constants of HF and N2