Grants of up to £4m will be awarded to culture and tech projects as part of plans to build a lasting legacy from the Great Exhibition of the North, which will be hosted by Newcastle and Gateshead.