Efficient elimination of response parameters in molecular property calculations for variational and nonvariational energies.