Energetic electron measurements in the edge of a reversed-field pinch