In-situ monitoring by Raman spectroscopy of the thermal doping of graphene and MoS2 in O2-controlled atmosphere