Self-generation of magnetic fields by sheared flows in weakly ionized plasmas