Topological invariants for germs of analytic and area-preserving mappings, and their application to analytic differential equations in CP2