Self-adapting model-based motion capture system for the analysis of insect movements