This function changes the sampling time (tsam) of the system. Exits with an error if sys is purely continuous time.