Switching Elements Based on the Spatial Optical Soliton Propagation