Definition, legislation and regulations for the treatment of historical documents generated in the Spanish and Andalusian Public Administration