Extremal transitions and five-dimensional supersymmetric field theories