Rhenium effect in the formation and stability of HgCaO2 and Hg1−xRexBa2Ca2Cu3O8+δ superconductor