Sobolev embeddings, extensions and measure density condition