Gravar-mail: On-chip magnetic cooling of a nanoelectronic device