Optical study of current filaments in pin diodes