Tesla executive says he's resigned as recent layoffs hurt morale and throw the company 'out of balance'