likelihood function for exponential distribution