Magnetic field induced transitions in the few-electron ground states of artificial molecules