Inverse problem of a time-dependent Gingzburg--Landau model for superconductivity with the final overdetermination