Nuclear magnetic resonance studies of vortices in high temperature superconductors