An analysis of factors affecting catches of insects in light-traps