created by the chemical reaction between petroleum rising from its ancient burial and subterranean pools of water percolating through porous limestone , the caves evolved from cracks and fissures into intricately interlaced hollow spaces deep beneath the surface .