Synthesis of Porous MgF2 Coating by a Sol–Gel Method Accompanied by Phase Separation