Optical studies of pyrolyzed polyacrylonitrile