Using a bootstrap method to choose the sample fraction in tail index estimation