Cosmogenic dating of megaliths