A limit of the confluent Heun equation and the Schrödinger equation for an inverted potential and for an electric dipole