Effects of a Mass Layer With Gradually Varying Thickness on a Quartz Crystal Microbalance