Bore formation, evolution and disintegration into solitons in shallow inhomogeneous channels