Walgreens posts third-quarter sales gains of 3.3%