Output regulation of linear systems with adaptive internal model