The Dirichlet problem for the Laplacian in bounded and unbounded domains : a new approach to weak, strong and (2+k)-solutions in Sobolev-type spaces