Tesla's Q2 loss widens ahead of Model S boost