Mubarak's detention extended, may be shifted to prison