A study of the interfacial shear and tensile stresses in a restored molar tooth