Generalized matrix method for calculation of internal light energy flux in mixed coherent and incoherent multilayers | Synapse