A spectroscopic analysis of the most polarizing atomic lines of the second solar spectrum