Text this: A nonlinear model of flexoelectric liquid crystal diffraction gratings