Preparing wave functions by the chirped adiabatic passage scheme in manifolds of levels