Former Tesla employee to pay $400,000 to end lawsuit over tips to reporters