Effect of water sorption and thermal stress on cavity adaptation of dental composites