Depth of maximum of air-shower profiles at the Pierre Auger Observatory. I. Measurements at energies above 10^17.8eV