A Wiener estimate for relaxed Dirichlet problems in dimension N ≥ 2