Calculation of open p-shell atoms in the algebraic approach of the Hartree–Fock method