Output regulation for linear systems via adaptive internal model