Probing magnetism in atomically thin semiconducting PtSe2