logistic regression likelihood function