Differential persistence favors habitat preferences that determine the distribution of a reef fish