Correlated fermions in nuclei and ultracold atomic gases