Modified acrylamide polymers for enhanced oil recovery