Magnetic Forces and Magnetostriction in Electrical Machines and Transformer Cores