Characterizing the function of unstructured proteins: Simulations of charged polymers under confinement