US President Jimmy Carter has been credited with "laying the groundwork" for the Good Friday Agreement in Northern Ireland.