Deterministic randomness extraction from generalized and distributed Santha-Vazirani sources