The (p, π+) reaction on 9Be and 10B at intermediate energies and a coherent π-exchange analysis