H ∞ and H 2 guaranteed costs computation for uncertain linear systems