Optical beam induced current measurements: principles and applications to SiC device characterization