The dynamics of the response of an electro-optic cell based on a nematic layer with controlled surface anchoring