Inger Andersen has been elected as executive director of the United Nations Environment Programme (UNEP) to replace Erik Solheim.