A measurement of cosmic-ray positron and negatron spectra between 50 and 800 MV