Tuning the Electronic Structure of Graphene by Molecular Dopants: Impact of the Substrate