Optimization of an integrated lattice of acoustoelectronic gas sensors