Chemical Evolution of Dwarf Spheroidal and Blue Compact Galaxies