Enhanced thermally aided memory performance using few-layer ReS 2 transistors