The applicability of physical optics in the millimetre and sub-millimetre spectral region. Part I: The ray tracing with diffraction on facets method. (March 2017)