Inelastic scattering in STEM for studying structural and electronic properties of chalcogenide-based semiconductor nanocrystals