Nonlinear quantum piston for the controlled generation of vortex rings and soliton trains