Control of shared representations relies on key processes involved in mental state attribution