Calculation of nuclear Overhauser effects