Stability of actively controlled rotating shaft made of functionally graded material