Microwave-assisted synthesis of Mg:PbI2 nanostructures and their structural, morphological, optical, dielectric and electrical properties for optoelectronic technology