What determines the amount of current in an electrically controlled switch?