Doubly-Affine Extractors, and their Applications