Critical-current reduction in thin superconducting wires due to current crowding