An investigation on the propagation of bright solitary waves in some autonomous and nonautonomous inhomogeneous optical systems