Status of the ATLAS level-1 central trigger and muon barrel trigger and first results from cosmic-ray data