Reverse-engineering pinpoints materials and techniques used by Romans, Mayans and Chinese; the research could help contemporary architecture to endure