Lowe's reports big second-quarter gains