Tesla's profits sink as the company struggles with cooling demand