Phase transformations at bombardment of thin films with ions