Home Depot profit rises in Q2