New grades from an independent watchdog group show how Massachusetts hospitals compare in various measures of patient safety.