First-Principles Study Of Nanostructured Materials: Wires, Interfaces, And Bulk Systems