A population distribution model for the alignment of nematic liquid crystals