Eight ‌Muslim-majority countries have "strongly condemned" a new Israeli law which makes death by hanging ​a default ‌sentence for Palestinians convicted ​in military courts of deadly attacks.