General time-modulated antenna arrays