Explain the roles of the president as commander in chief and head of state in the united states