An active inference implementation of phototaxis