Soliton switching in inhomogeneous nonlocal media