Molecular typing of polymorphic genes by time-resolved fluorescence resonance energy transfer