Electron microscopy study of advanced heterostructures for optoelectronics