Josephson effect throughout the BCS-BEC crossover