Magnetic properties of high-T c superconductors from NQR and NMR measurements