Time Window Determination for Inference of Time-Varying Dynamics: Application to Cardiorespiratory Interaction