metals and non metals chemical reaction