Determination of flow stress and the critical strain for the onset of dynamic recrystallization using a sine function