Electromagnetic scattering and radiation of arbitrarily shaped surfaces by triangular patch modeling