Solution of the Bogoliubov–de Gennes equations at zero temperature throughout the BCS–BEC crossover: Josephson and related effects