G8 pledges support for Arab Spring countries