Diffraction efficiency of nonsinusoidal Bragg reflection gratings