From host immunity to pathogen invasion: linking helminth co-infection and microparasite dynamics