Cavity-enhanced four-wave-mixing in an integrated semiconductor ring laser for all-optical digital logic operations