NMR line shape studies of static and dynamic systems