Linearized Dynamics of Bubbly and Cavitating Flows in Cylindrical Ducts