Europe finds agreement on the electricity market