Polar codes and polar lattices for efficient communication and source quantization