Electrons in a ferromagnetic metal with a domain wall