Calculation of reflection from multilayer films using the transfer matrix method