Chromatin at the nuclear periphery and the regulation of genome functions