Understanding Tool Discovery and Tool Innovation Using Active Inference