Determination of the dissipation in superconducting Josephson junctions