Three-electron integral evaluation in the transcorrelated method using a frozen Gaussian geminal