Structural variations of Cr-doped (Y,REE)AlO3 perovskites