Comprehensive strategy for the calculation of overlap integrals with Slater‐type orbitals