Determination of local energy density functionals from Brueckner-Hartree-Fock calculations