Framework structure, phase transition and ionic conductivity of MgZr4(PO4)6 and ZnZr4(PO4)6