NMR investigation of hydrogen in amorphous silicon and related materials