NSW declares third state of emergency