Application of multistage fuzzy control to a double inverted pendulum