Semiconductor lasers as dynamical systems