Fault modelling and analysis of permanent magnet machines for offshore wind power application