State to take over Nassau County hospital