Accurate calculation of thermal noise in multilayer coating