Wal-Mart sees online sales surging 40% as it pursues Amazon