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