On the solvability of linear PDEs in weighted Sobolev spaces