Thomas Frédéric, Ophtalmologue à Challans