Third-order nonlinear optical properties of a ladder polymer obtained by pyrolysis of polyacrylonitrile