Convex Risk Functionals: Representation and Applications