Energy-level and structural arrangement of organic/metal and organic/organic interfaces