The ATLAS level-1 trigger: Status of the system and first results from cosmic-ray data