Ab initio calculation of structural, electronic and optical properties of Hg(IO3)2