Tesla lost more money than expected during the second quarter, but did get more cars rolling off the assembly line