Influence of the counterion on the local environment and electronic structure of active sites in zeotypes