Theoretical Studies Of Nonuniform Orientational Order In Liquid Crystals And Active Particles