A survey of the Avadana literature with special reference to the Sumagadhavadana from Indian and tibetan sources