Efficient high-dimensional entangled state analyzer with linear optics