Optimal Control for Semiconductor Diode Design based on the MEP Energy-Transport Model