Analysis and measurement of the transfer matrix of a 9-cell, 1.3-GHz superconducting cavity