Preparation and characterization of MgF2 thin film by a trifluoroacetic acid method