Excitation of isobaric analogue states in (p, n) reactions at 30 and 50 MeV and the isospin dependence of the optical model