A plasma-wall interaction model for the erosion of materials under ion bombardment