Intersection theory of punctured pseudoholomorphic curves