Tech giants pledge to keep children out of cobalt mines that supply smartphone and electric car batteries