The paper is an expanded version of http://arxiv.org/abs/math/0410372 and a modest generalization of an algorithm by J. Schicho.