Foundations believed to date from 7th century found beneath another ancient mosque from the 8th century during the early Islamic period