Generation of bright spatial quasi-solitons by arbitrary initial beam profiles in local and nonlocal (1+1)-Dimensional nonlinear media