China and S. Korea condemn Japanese politicians for visit to divisive WWII shrine