A percolation approach to ion beam induced modifications of organic resists