Optical-model analysis of 7Li + 25Mg and 7Li + 27Al elastic scattering at 89 MeV