Optical excitations in organic molecules, clusters, and defects studied by first-principles Green's function methods