Optimization of matrix chemical ratio for high flux pinning in ternary (Nd-Eu-Gd) Ba_2Cu_3O_y