Nonlinear atom optics and bright-gap-soliton generation in finite optical lattices