A Transition from Localized to Strongly Correlated Electron Behavior and Mixed Valence Driven by Physical or Chemical Pressure in ACo2As2 (A = Eu, Ca)