NSW Wallerawang coal power plant to be mothballed, says union