Towards a hierarchical structure for production planning and control in flexible manufacturing systems