Three-dimensional flow in electromagnetically driven shallow two-layer fluids.