Implemented transient mathematical model of rotating electrical machines by taking into account skin effect