Biomineral shell formation under ocean acidification: a shift from order to chaos