Back grating optimization for light trapping in thin-film quantum dot solar cells