Hydrodynamical simulations of galaxy clusters in dark energy cosmologies