Provide a comprehensive explanation of foreign exchange markets. In your explanation, provide examples of how forward markets and spot markets operate.