Investigation of the optical properties of Mg(OH)2 and MgO nanostructures obtained by microwave-assisted methods