How do market orders and limit orders function differently, and when should each be used in trading?,