A numerical strategy for the analysis of infinitesimal mechanisms