General optical metrology for the dipole orientation in organic light-emitting diodes