Measurement of the production cross-sections of pi(+/-) in p-C and pi(+/-)-C interactions at 12 GeV/c