Rate Equations in Semiconductor Electronics