Nonlinear dynamics of nonautonomous solitons in external potentials expressed by time-varying power series: exactly solvable higher-order nonlinear and dispersive models