Systematic investigation of the electromagnetic filtering effect as a tool for achieving the compensation condition in silicon hadron calorimetry