Life history patterns shape energy allocation among fishes on coral reefs