Tesla boosts China investment with plans for Shanghai battery factory