An extension of the discrete Lindley distribution with applications