The science of pearls