An EELS study of the structural and chemical transformation of PAN polymer to solid carbon