Effect of magnesium and fluorine dopants on properties of ZnO thin films