Reaction of metals with acids