Palaeozoic stromatoporoid diagenesis: a synthesis