Dynamics of broadband photoinduced species and enabled photodetection in MXenes