Large and opposite changes of the third-order optical nonlinearities of chalcogenide glasses by femtosecond and continuous-wave laser irradiation