Ericsson, ZTE settle patent disputes