Foxconn to plug at least $340M into AI R&D over five years