Hierarchical controls in stochastic manufacturing systems with convex costs