The fossil record of ecdysis, and trends in the moulting behaviour of trilobites.