Surface effects during ion beam processing of materials