Correlated calculations for the nuclear magnetic shieldings of CO and HCN