Lattice stability in A2MCl6 ionic crystals (A identical to C5H5NH or CH3C5H4NH; M identical to Sn or Te)