Tailoring optical and thermal properties in rare-earth doped MoS 2 for device applications | Synapse