Symmetry rules and strain/order-parameter relationships for coupling between octahedral tilting and cooperative Jahn-Teller transitions in ABX3 perovskites. I. Theory.