Theory of line shapes of exciton resonances in semiconductor superlattices