Gravar-mail: Thickness-modulated metal-to-semiconductor transformation in a transition metal dichalcogenide