Brueckner‐Hartree‐Fock method for finite electronic systems