Simultaneous measurement of gravity acceleration and gravity gradient with an atom interferometer