A structure theorem for 2-stretched Gorenstein algebras