New method for analysis of electrooptical response in liquid crystal devices with non-monotonous relaxation