Transport through two-level quantum dots weakly coupled to ferromagnetic leads