A comparative simulation study of the annual maxima and the peaks-over-threshold methods