Josephson effect in fermionic superfluids across the BEC-BCS crossover