Flow in periodically constricted tubes: Transition to inertial and nonsteady flows