I (OP) take the liberty of updating again this answer after several months, since I realized that defining it "incomplete", as I did, is a bit misleading, letting perhaps one think that there's just some detail to be fixed. In fact, I think that the difficulty described in the Edit above is the key one. I arrived at versions of it through each one of the attempts I made at solving the problem.
Alessandro Della Corte
- 4.5k
- 1
- 20
- 47
Alessandro Della Corte
- 4.5k
- 1
- 20
- 47
Added a disclaimer because the argument of the answer is not complete.
Alessandro Della Corte
- 4.5k
- 1
- 20
- 47
Ilkka Törmä
- 740
- 1
- 5
- 12