General factors governing the efficiency of luminescence devices