Chemical encoding of amphiphilic copolymers for a dual controlled release from their assemblies