Pathophysiology of pelvic inflammatory disease