The crystal chemistry of the rare earth orthoferrites