Measurement and analysis of thin- and thick-target yield curves of narrow resonances with a high energy resolution ion beam