Habitat requirements and population dynamics of three endangered butterfly species