On the optimum efficiency of endoreversible thermodynamic processes