Spin, charge, and orbital ordering in the ferrimagnetic insulator YBaMn 2 O 5