Method for designing highly efficient composite transmission gratings