Tropical theta characteristics