Wal-Mart Q2 profit rises, but sales miss Street