NAB to stop lending to thermal coal mining