Structural and electronic studies of metal hexacyanoferrates-based cathodes for Li and Na rechargeable batteries