Harmonic analysis on nilpotent groups and singular integrals I. Oscillatory integrals