Calculation of Feynman diagrams with zero mass threshold from their small momentum expansion