Tesla records lowest profit margin for five years