Computation and numerical simulation of focused undulator radiation for optical stochastic cooling