XOR gate response in a mesoscopic ring with embedded quantum dots