Optically active surfaces formed by ion implantation and thermal treatment