Likelihood functions for generalized stochastic frontier estimation