The efficiency of grating solar cells