Tesla's losses deepen as expansion costs grow