New York trails nation in hospital quality ratings