On the calculation of local field factors for microscopic static hyperpolarizabilities of molecules in solution with the aid of quantum mechanical methods