Ionospheric and Solar Wind Contributions to the Storm-time Near-Earth Plasma Sheet