Classical and ultrarelativistic limits of the Riemann problem for the relativistic Euler fluid with Synge energy