A stochastic ray frontier model with a generic angular deformation function