Proton yields from quasielastic pion scattering on 27Al and 208Pb