Analysis of electromagnetic strains on a structure such as switched reluctance machine