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