Under Iran’s unique political system, choosing a new supreme leader is a complex process rooted in religious doctrine that now faces pressure amid war and uncertainty.