Formation of a buried density grating on thermal erasure of azobenzene polymer surface gratings