A renewal-equation approach to the dynamics of stage-grouped populations