Cooling electrons in nanoelectronic devides by on-chip demagnetisation. (2020)