Ecological time-series analysis through structural modelling with latent constructs: concepts, methods and applications