Characterizing matroids whose bases form graphic delta-matroids