Excitonic effects in the miniband formation of graded-gap superlattices