Simultaneous design of a coal pyrolysis and combustion cogeneration process