Grating couplers in silicon-on-insulator: The role of photonic guided resonances on lineshape and bandwidth