Ab Initio Simulations of Graphene-based Nanosensor for Detecting NO2 and Li