Life-history transitions of the coral-reef fish Elacatinus lori.