A model for the friction of multiphase materials in abrasion