what is produced when metals react with dilute acids?​