Explain why hydrogen gas is given off when a reactive metal undergoes a single-displacement reaction with water.