Ukraine’s president visits troops on northeastern frontline