Nissan has axed a plan to make electric vehicle batteries in Portugal.