MuSR and NMR: fundamental concepts and selected examples