Null controllability with vanishing energy