Constraint-preserving Sommerfeld conditions for the harmonic Einstein equations