A functional calculus based on the numerical range: applications