Magnetic properties of on-surface synthesized single-ion molecular magnets