On the Invariance of Recovery Algorithms for Compressed Sensing based on Expectation-Consistent Approximate Inference