Sherwin-Williams posts gains in Q2