Generalized BEC and crossover theories of superconductors and ultracold Fermi gases