Self-induced photorefractive spatial frequency filter