Harmonic measure on locally flat domains