The internal and external dipole moment of a water molecule and orientational ordering of water dipoles in an electric double layer