Effect of rare earth dopants on the magnetic ordering of frustrated h-YMnO3