extract_model_vimp function

Internal function to extract variable importance from models.