Pioneer 10 and Voyager observations of the interstellar medium in scattered emission of the He584 A and H Lya 1216 A lines