Quadratically presented Gorenstein ideals