All optical switching in semiconductor microresonators based on pattern selection