Growth and characterization of ferroelectric BaMgF4 films