NMR studies of high temperature superconductors