Pinning of dislocations in hcp and bcc 3 He by stress waves and by 4 He impurities