NMR of 77Se and 125Te in liquid and amorphous semiconductors