Looking into the dynamics of molecular crystals of ibuprofen and terephthalic acid using 17O and 2H nuclear magnetic resonance analyses