Sol–gel-fluorination synthesis of amorphous magnesium fluoride