Modeling vacancies and hydrogen impurities in graphene: A molecular point of view