How is the head of government chosen in a parliamentary democracy?