Autosolitons in trapped Bose-Einstein condensates with two- and three-body inelastic processes