A novel single-photon detector based on capacitance-balancing technique