Cation, magnetic, and charge ordering in MnFe3O5