Samsung overtakes Apple to become the leading smartphone brand