Optimizing multilayered dielectric mirror coatings for thermal noise