Electron-correlated calculations of the nuclear shielding constants and shielding polarizabilities for H2, N2, HF and CO