Title: Cooling Electrons in Nanoelectronic Devices by On-Chip Demagnetisation