Gamma-ray multiplicity studies for 40Ar and 86Kr induced reactions leading to Er compound nuclei at limiting angular momenta