An efficient method for the transformation of two electron integrals