Magnetism of TbPc2 SMMs on ferromagnetic electrodes used in organic spintronics