Polymer conversion into amorphous ceramics by ion irradiation