Cation distribution and Curie temperature in ferrites