A microscopic model for the concentration dependence of the antiferrodistortive phase transition in mixed betaine phosphate/phosphite crystals