Spin-dependent electronic and magnetic properties of Co nanostructures on Pt(111) studied by spin-resolved scanning tunneling spectroscopy