Time-of-flight and activation experiments on 147Pm and 171Tm for astrophysics