In situ trace element determination by AMS