UV absorption and sol-gel transition in ion-bombarded polystyrene