Cosmology with galaxy redshift surveys: Probing dark energy