BMO-type seminorms and Sobolev functions