Quasifree Mg-H thin films