Quantum approximate optimization of non-planar graph problems on a planar superconducting processor