Macroeconomic Risks and Characteristic-Based Factor Models