The periodic thermally developed regime in ducts with streamwise periodic wall temperature or heat flux