NMR study of high-Tc superconductors and related materials