Formation and properties of polymer carbon