Text this: Probing chemical pathways in polymer membranes despite electron beam damage