Phase transitions in natural and deuterated (NH4)2TeCl6