Two Tesla veterans have formed a startup to apply X-ray technology to one of the biggest problems for the makers of electric vehicle batteries: finding defects in the batteries as they’re made—and before they cause bigger problems.