Anatomy of Two-Loop Effective Action in Noncommutative Field Theories