Calculation of free-free radiation from plasma with non-Maxwellian isotropic or anisotropic electron velocity distribution