Theory of modulational instability in Bragg gratings with quadratic nonlinearity.