Orthogonal Measures on the Boundary of a Riemann Surface and Polynomial Hull of Compacts of Finite Length