Parametric model for f-shell configurations. I. The effective-opertor Hamiltonian