On the origin of the spontaneous formation of nanocavities in hexagonal bronzes (W,V)O3