Lateritic weathering as a mechanism for the generation of ferruginous ooids