Dynamics of ion beam modification of polymer films