The interpretation of the DC characteristics of LED and laser diodes to address their failure analysis