Physical parameters of the eclipsing binary V798 Cep