Singlets and triplets in hybrid nanodevices