generate select with country optgroups