Theoretical analysis of two-color ghost interference