Minimax-Optimal Two-Sample Test with Sliced Wasserstein