Boundary-value problems for partial differential equations in non-smooth domains