Optical switching in three-coupler configurations