Modified slater integrals for an ion in a solid