Study of Band Gap Opening in Graphene by Impurity and Substrate-Mediated Interactions