Maldives ex-president says top court judge ill-treated in prison