Direct observation of localized excitons in quantum wires by spatially resolved photoluminescence