A framework based on generalised linear mixed models for analysing pest and disease surveys