Muons and pions as probes in condensed matter