Explain the principles behind the operation of a varactor diode and its applications in frequency tuning and modulation circuits. What factors influence the capacitance variation in varactor diodes under different bias conditions?