Japan, Singapore agree to cooperate on AI, chips at summit