Array thinning with periodic and aperiodic distributions in a Fabry-Perot cavity for gain enhancement