Harnessing guided mode resonances in a one-dimensional grating for graphene-based absorbers