A framework for hierarchical planning and control for remanufacturing