Surface x-ray crystallography with alternating constraints in real and reciprocal space: The case of mixed domains