Generation and controlling of ultrashort self-similar solitons and rogue waves in inhomogeneous optical waveguide