Elastic and inelastic scattering of O 16 on Al 27 and Si 28 at 240 MeV