Charge carrier recombination and generation analysis in materials and devices by electron and optical beam microscopy