An adaptive fuzzy PID controller for speed control of brushless direct current motor