Augmented Quaternion and Augmented Unit Quaternion Optimization