Chesapeake Energy, New York reach settlement over gas leases