Shape factors of the beta spectra of 170Tm, 186Re and 188Re