Geometry-dependent spectra and coherent-transient measurement of nearly degenerate four-wave mixing using two-photon resonance