Quasiparticle diffusion and edge losses in superconducting tunnel junctions detectors with two active electrodes