Simulating diffraction efficiency of surface-relief grating using the RCWA method