Text this: Online intelligent parameter and speed estimation of permanent magnet synchronous motors using bacterial foraging optimization.