The Golod property of Powers of ideals and of Koszul ideals