A micromechanical thermal displacement sensor with nanometre resolution