Unravelling the depositional origins and diagenetic alteration of carbonate breccias