The impact of structural relaxation on spin polarization and magnetization reversal of individual nano structures studied by spin-polarized scanning tunneling microscopy