Generalized Self-Concordant Functions: A Recipe for Newton-Type Methods