Acidic hydrolysis and extraction of natural dyes present in plants and ancient textiles