MOCVD of YF3 and Y1-xErxF3 thin films from precursors synthesized in situ