Choose the correct answer:
 
When dilute nitric acid reacts with magnesium, the products formed are