Host defenses to transposable elements and the evolution of genomic imprinting