A numerical approach for automatic detection of the Multipoles responsible for ill conditioning in Generalized Multipole Technique