Up until what century was Avicenna's work slightly influential