Frequency mixing of photorefractive and ferroelectric gratings in lithium niobate crystals.