Afghanistan braces for militant attacks as polling centres open