The Cardy-Verlinde formula for 2D gravity