Embedding theorem for weighted Sobolev classes on a John domain with weights that are functions of the distance to some h-set