Computational study of polymer membranes for proton and anion exchange membranes fuel cells