Representational geometries reveal differential effects of response correlations on population codes in neurophysiology and functional magnetic resonance imaging