Inclusive pion and η production in p+Nb collisions at 3.5 GeV beam energy