Temperature dependency of silicon structures for magnetic field gradient sensing