First-principles theoretical study of organic/metal interfaces: Vacuum level shifts and interface dipoles