Online muon reconstruction in the ATLAS level-2 trigger system