Determination of binding curves via protein micropatterning in vitro and in living cells