Transient analysis of p-n-p-n optoelectronic devices