Intersection rules for p-branes