Four–state traps in almost ideal p–n junction