which component resists the flow of cirrent in a electrical circuit​