Iran overhauls the way in which it offers contracts to foreign energy companies in a bid to attract up to $30bn of new investment.