Wal-Mart profits rise in Q2, U.S. same-store sales flat