The Lewis diagrams for magnesium and fluorine are shown below.

What is the correct chemical formula for magnesium fluoride?

A. MgF
B. Mg2F
C. MgF2
D. Mg2F3