Quasielastic scattering of Li and Be on C