Application of the Hartmann method for the determination of the secondary spectrum of an objective