Fabric transitions from shell accumulations to reefs: an introduction with Palaeozoic examples