The magnetic field and multiple planets of the young dwarf AU Mic