I want to write a trigger on a custom object such that it invokes the creation or update of Custom metadata type records. Since the fields are not writeable, how do I achieve this?