OPTICAL SWITCHING OF SPATIAL MODES IN LASERS WITH A SQUARE PUMP