Shearman advises Boston charity over Madoff losses