Robust Line Detection and Association in Piping and Instrumentation Diagrams