Comparison of inelastic electron and positron scattering cross sections on 12C and 27Al