Symmetry-motivated analysis of charge and orbital order in perovskites