Detection of range shifts: General methodological issues and case studies of butterflies