A Nyström method for a boundary integral equation related to the Dirichlet problem on domains with corners