Teleosemantics and the free energy principle