A ray‐tracing algorithm for ab initio calculation of thermal load in undulator‐based synchrotron beamlines. (14th July 2020)