Optimal reinsurance arrangements under tail risk measures