International Capital Flows, Technology Spillovers and Local Credit Markets