What is formed when metal reacts with acid to liberate gas?