An instrument to measure anisotropies of cosmic ray electrons and protons for the explorer 34 satellite