Adsorption of gas molecules on graphene nanoribbons and its implication for nanoscale molecule sensor