Singularity avoidance of control moment gyros using optimization of initial gimbal angles and application to multi target pointing for satellite attitude control