Chiral dynamics of hadrons in nuclei