Israel has carried out dozens of air strikes on Iran and has declared an emergency as it braces for retaliation.