Joint production and economic retention quantity decisions in capacitated production systems serving multiple market segments