Lending terms and aggregate productivity