Study of eta and eta' production in antineutron-proton annihilations