Measurement-Based Quantum Thermal Machines with Feedback Control