Enhanced transmission of periodic, quasiperiodic, and random nanoaperture arrays