A Born–Oppenheimer approximation for path integrals with an application to electron solvation in polarizable fluids