Exact singularity avoidance control of the pyramid type CMG system