Tesla’s increased costs outweighed its revenue growth