Einstein--Cartan equations in astrophysically interesting situations. I. The case of spherical symmetry