A simple analytic solution for transient two-wave mixing in photorefractive materials