Optical modifications of polymers by ion beam irradiation