When the president exercises power as commander-in-chief, he or she is acting as...?