Transfer-matrix method for the complex band structure of superlattices