The Berry phase: A simple derivation and relation to the electric dipole moment experiments with ultracold neutrons