Theory of non-collinear second harmonic generation in a non-steady state regime