Cosmic-ray positron fraction measurement from 1 to 30 GeV with AMS-01