Enhancement of superconductivity by semi-metallic (or semiconducting) inclusions