Foxconn beats estimates with record third-quarter revenue on AI demand