Which compound can be prepared by reacting a metal with a dilute acid?