Biodegradable anastomotic ring for gastrointestinal anastomosis