Double-acting telescopic hydraulic cylinder