Tuning of NMR and EPR parameters by vibrational averaging and environmental effects: an integrated computational approach