Preparation and characterization of thin films of MgO, Al2O3 and MgAl2O4 by atomic layer deposition