Cage effects on the librational motion in ionomeric homopolymers and block copolymers