Modelling diffraction during ray tracing using the concept of energy flow lines