Tesla factories losing billions due to battery shortages and China woe