Un Enfoque General de la Inversión Sísmica con Diferenciación Automática