Radiation of arbitrary sources in anisotropic stratified media