Visual illusions via neural dynamics: Wilson-Cowan-type models and the efficient representation principle