Deposition and microstructural characterization of MgO thin films by a spray pyrolysis method