A mechanism for neutron emission from deuterium trapped in metals