Israeli attorney-general says Netanyahu's judicial overhaul 'illegal'