Practical use of transfer matrix for matching calculations