Magnesium reaction with hydrochloric acid