Transition from near-field thermal radiation to phonon heat conduction at sub-nanometre gaps