Controlled single-spin transport in thermally driven molecular devices containing graphene electrodes modulated by quantum resonance