simplifying gwlars.fit.inner and gwglmnet.fit.inner to reduce duplicated code