Stereotypic animal behaviour : fundamentals and applications to welfare