Spontaneous and perturbational complexity in cortical cultures