Achieving the capacities of channels with erasures using nested linear/lattice codes