Credit: AP Photo/Jenny Kane Earnings at Musk’s car company fall as research spending cuts into profit from selling cars