A model for intraguild predation dynamics between immature stages