Optical monitoring of technological parameters during molecular-beam epitaxy