Design of diamond photonic devices for spintronics