A micromechanical approach for the micropolar modeling of heterogeneous periodic media