A Lusin type approximation of Sobolev functions by smooth functions