Pulsed electrically detected magnetic resonance for thin film silicon and organic solar cells