Nonparametric Estimation of Homothetic and Generalized Homothetic Production Functions