An online technique for condition monitoring the induction generators used in wind and marine turbines