Mike Green agrees to two-year deal to remain with Red Wings