Frequency-temperature relations of thickness-shear and flexural vibrations of contoured quartz resonators