Intracluster light and the extended stellar envelopes of cD galaxies: an analytical description