Differential Privacy for Symbolic Systems with Application to Markov Chains