Classical-communication cost in distributed quantum-information processing: A generalization of quantum-communication complexity