A microscopic analysis of the (p, n) reaction on 1p-shell nuclei