Subnanosecond pulse duration measurements by noncollinear second harmonic generation