Normalization for planar string diagrams and a quadratic equivalence algorithm (Logical Methods in Computer Science, 2022)