Coupled free-carrier and exciton relaxation in optically excited semiconductors