Judge narrows Tesla lawsuit against former employee, dismisses defamation counterclaim