Real-Space Electronic Structure Methods For Modeling Nanowires And Atomic Force Microscopy Imaging