Elastic waves in finely layered sediments : The equivalent medium and generalized O'Doherty-Anstey formulas