Tesla shares jump after first profit in 2 years