Gravitational waves from inspiraling compact binaries: Validity of the stationary-phase approximation to the Fourier transform