Dynamic control of self-assembly of quasicrystalline structures through reinforcement learning