Influence of stand characteristics and site quality on sawfly population dynamics.