Geometric manipulation of the quantum states of two-level atoms