Theoretical evaluation of the tritium extraction from liquid metal flows through a free surface and through a permeable membrane