Large-scale magnetic topologies of early M dwarfs