Experimental study of the A(e,e'π+) reaction on 1H 2H, 12C, 27Al, 63Cu, and 197Au