The Kovacs effect: a master equation analysis