Angular-Diameter Distance Estimates from the Sunyaev-Zeldovich Effect in Hydrodynamical Cluster Simulations