'Quad' nations agree to strengthen cooperation over advanced tech