Control of the populations and phases of two-level quantum systems by a single frequency-chirped laser pulse