Onset of vortices in thin superconducting strips and wires.