Ericsson, Apple sign patent deal in Sweden