Secular perturbation theory and computation of asteroid proper elements