Wayfair Inc. Reports Surprise Second-Quarter Profit