revised preprint: A monadic approach to polycategories