Institut Médico Pédagogique, Institut médical à Rougemont-le-château