A robust method to perform time-domain analysis of PWL dynamic circuits