Prescribing mean curvature vectors for foliations