Product grouping in reconfigurable manufacturing systems