The UK has signed up with eight other European countries to develop an offshore wind electricity grid spanning the North and Irish seas.