Efficient Generalized Selective Private Function Evaluation with Applications in Biometric Authentication