How RC circuit work in electronics circuit