Lucid Motors has appointed a new chief executive officer, bringing an end to a prolonged leadership search that followed the sudden resignation of its former…