Reduction of one-loop tensor form factors to scalar integrals: a general scheme