How attention simplifies mental representations for planning