Characterization of electronic properties in complex molecular systems: modeling of a micropolarity probe