Spectroscopy and microscopy analysis of semiconductor lasers in student laboratories