Home-Market and Factor-Endowment Effects in a Gravity Approach