Walgreens beats sales expectations, as it expands its health-care business