Formation conditions of random laser cavities in annealed ZnO epilayers