Elastic study on singularities interacting with interfaces using alternating technique: Part I. Anisotropic trimaterial