Frequency conversion of orbital angular momentum with optimized efficiency and modal purity