SWITCH-ON DYNAMICS AND PATTERN-RECOGNITION IN MULTISTABLE LASERS