Measurement-based preparation of multimode mechanical states