Porosity in Ce4+ and Mg2+ doped zirconia nanomaterials