Characterizing 3-connected planar graphs and graphic matroids