Optimal dense coding and quantum phase transition in Ising-XXZ diamond chain