Approximation algorithms for routing and call scheduling in all-optical chains and rings