Maintenance and diagnostic techniques for rotating electric machinery