in what ways were temples important to Egypt's economy ?