Two-electron lateral quantum-dot molecules in a magnetic field