Quantifying the Effect of Open-Mindedness on Opinion Dynamics and Advertising Optimization