Bound states of a charged particle in a dipole field