Determination of the critical value of xc for the direct-to-indirect band-gap transition in AlxGa1-xAs by measuring hot-carrier dynamics in the X valley