The twisted dynamical zeta functions of Ruelle and Selberg of locally symmetric spaces of rank 1 and applications