Electrical response of a liquid crystal cell: the role of Debye's layer