AlPO4-31 derivatives doped with various metals: effects on crystal symmetry and thermal stability