Investigation on effect of boron and nitrogen substitution on electronic structure of graphene