Record second-quarter earnings at Lowe's