Analogy and invention. Some remarks on Poincaré’s Analysis situs papers