Adaptation Properties Allow Identification of Optimized Neural Codes