Extremum principles for the determination of relativistic bound-state energies